<!doctype html>
<html>
<head>
    <title>添加酒店</title>
    <?php $this->load->module('admin/index/page_header');?>
    <script type="text/javascript">
        window.UEDITOR_HOME_URL = "<?php echo URLPRE.'static/public/Lib/ueditor/';?>";
    </script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/ueditor/ueditor.config.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/ueditor/ueditor.all.min.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/ueditor/lang/zh-cn/zh-cn.js" charset="utf-8"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/color/color.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/select2/select2.min.js"></script>
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/select2/select2_locale_zh-CN.js"></script>
    <link href="<?php echo URLPRE;?>static/public/Lib/select2/select2.css" rel="stylesheet" />
    <link href="<?php echo URLPRE;?>static/public/Lib/select2/select2-bootstrap.css" rel="stylesheet" />
    <!--引入CSS-->
    <link rel="stylesheet" type="text/css" href="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.css">
    <!--引入JS-->
    <script type="text/javascript" src="<?php echo URLPRE;?>static/public/Lib/webuploader/webuploader.js"></script>
</head>
<body>
<div class="wrap">
    <div id="home_toptip"></div>
    <div class="nav">
        <ul>
            <li><a href="<?php echo $list_url;?>">房间号列表</a></li>
            <li class="current"><a href="javascript:void(0)">房间号酒店</a></li>
        </ul>
    </div>
    <div class="table_full">
        <form method="post" class="formvalidate" action="<?php echo $form_url;?>" name="frm">

            <div class="table_full">
                <table class="tab_label" width="100%" id="jiben_config">
                    <col class="th" />
                    <col/>
                    <tbody>
                    <tr>
                        <th>房间号：</th>
                        <td>
                            <input type="text"   name="Form[name]"  value="<?php echo $name;?>" class="input rounded" size="60" validate="{required:true}"/>
                        </td>
                    </tr>
                    <tr>
                        <th>房间价格：</th>
                        <td>
                            <input type="number"   name="Form[price]"  value="<?php echo $price;?>" placeholder="一口价模式可以不填" class="input rounded" size="60" validate="{number:true}"/>
                        </td>
                    </tr>
                    
                    <tr>
                        <th>床位：</th>
                        <td>
                            <select name="Form[number]">
                                <option value="1"  <?php if($number == 1):?>selected<?php endif;?>>1</option>
                                <option value="2"  <?php if($number == 2):?>selected<?php endif;?>>2</option>
                                <option value="3"  <?php if($number == 3):?>selected<?php endif;?>>3</option>
                                <option value="4"  <?php if($number == 4):?>selected<?php endif;?>>4</option>
                                <option value="5"  <?php if($number == 5):?>selected<?php endif;?>>5</option>
                                <option value="6"  <?php if($number == 5):?>selected<?php endif;?>>6</option>
                                <option value="7"  <?php if($number == 6):?>selected<?php endif;?>>7</option>
                                <option value="8"  <?php if($number == 7):?>selected<?php endif;?>>8</option>
                                <option value="9"  <?php if($number == 8):?>selected<?php endif;?>>9</option>
                                <option value="10" <?php if($number == 9):?>selected<?php endif;?>>10</option>
                            </select>
                        </td>
                    </tr>
                    
                    <tr>
                        <th>备注：</th>
                        <td>
                            <input type="text" value="<?php echo $note;?>" name="Form[note]" class="input rounded" size="60"  />
                        </td>
                    </tr>


                   <tr>
                        <th>是否套房：</th>
                        <td>
                            <input type="radio" value="1" <?php if($is_suite):?>checked<?php endif;?> name="Form[is_suite]" class="input rounded" size="60" />启用
                            <input type="radio" value="0" <?php if(!$is_suite):?>checked<?php endif;?> name="Form[is_suite]" class="input rounded" size="60" />禁用
                            &nbsp;&nbsp;&nbsp;<span class="red">(如果启用套房,订单价格不按照入住人数算)</span>
                        </td>
                    </tr>



                    </tbody>
                </table>
            </div>
            <?php if($id):?>
                <input name="Form[id]" type="hidden" value="<?php echo $id;?>" />
            <?php endif;?>
            <div class="btn_wrap">
                <div class="btn_wrap_pd">
                    <button type="submit" class="btn btn_submit J_ajax_submit_btn">提交</button>
                </div>
            </div>
        </form>
    </div>
</div>


</body>
</html>